//Ext.require('APP.view.nav.ContextBody');
Ext.define('APP.view.nav.ContextMenu',{
    extend : 'Ext.panel.Panel',
    alias : ['widget.contextMenu'],
    requires: ['APP.view.nav.DefaultMenuItem'], 
    initComponent : function(){
    	console.log('组件'+this.$className+'初始化');
    	var me=this;
    	Ext.apply(me,{
            region:'west',
            id:'west-panel',
            title: '欢迎您 '+Ext.util.getCurrentUser(),
            split:true,
            width: 200,
            minWidth: 100,
            maxWidth: 200,
            splitterResize: false,
            collapseMode: 'mini',
            collapsible: true,
            autoScroll:true,
            margins:'0 0 0 3',
            cmargins:'0 5 5 5',
            layout: {
                    type: 'accordion',
                    animate: true
            },
            defaults: {
                	xtype:'treepanel',
                	autoScroll:true,
                	rootVisible: false,
            },
            items: Ext.widget('defaultMenuItem').getMenuPanelItems()
        });
    	
        me.callParent(arguments);
    }
});